#ifndef BULLET_H
#define BULLET_H
#include<QPixmap>
#include"config.h"
class bullet
{
public:
    bullet();
    //直线发射
    void updateposition1();

    //两侧发射
    void updateposition2();
    void updateposition3();

    //敌机子弹
    void updatepositionboss();

    //子弹资源
    QPixmap m_Bullet1;
    QPixmap m_Bulletboss;
    QPixmap m_bullet2;
    //坐标
    int m_x;
    int m_y;

    int m_x_boss;
    int m_y_boss;
    //速度
    int m_speed;
    int m_speed_boss;
    //子弹是否闲置
    bool m_free;
    bool m_free_boss;
    //子弹边框
    QRect m_rect;
    QRect m_rect_boss;

    int Bullet_interval;

};

#endif // BULLET_H
